Meeting Rooms I
Easy
Question
Given a list of meeting intervals with start and end times, where the times are represented by integers, return whether there are any conflicting meetings.
If one meeting is scheduled to end at the same time another meeting starts, those two meetings are not considered conflicting.
Input: meetings = [[0, 2], [4, 6], [2, 3]]
Output: False
The meetings do not conflict with each other.
Input: meetings = [[1, 3], [5, 7], [3, 5], [0, 2]]
Output: True
The meetings at [0, 2] and [1, 3] conflict with each other.
Input: meetings = [[3, 4]]
Output: False
Clarify the problem
What are some questions you'd ask an interviewer?
Understand the problem
Which one of these schedules has conflicting meetings?
[[2, 3], [1, 2]]
[[2, 3], [1, 4]]
[[5, 10], [2, 5]]
[[10, 15], [0, 5], [5, 10]]
Take a moment to understand the problem and think of your approach before you start coding.